* Run on Stata 13 for Mac (OS 9)
* June 3, 2016

******************************************************************
* TABLE A-2. Industry-Level Models with Country-Level Controls
********************************************************************


*** Set Path 
* cd "..."

use "industry_country_no_outliers.dta", clear

* OUTLIERS DROPPED
gen scaled_state_hist = state/100

* GDP per Capita 
gen ln_gdp = ln(gdpcap)

* GDP/Cap
reg wtaxcomp region lnavgexp avgcompetitors lnavgage lntotlabor gov_owner_share c.lowfc##c.obsolete##c.tariff free_media ln_tot_pop i.sector ln_gdpcap, vce(cluster country)
*outreg2 using ".../additional_controls.xls", dec(3) alpha(.01, .05, .1) replace


* Urban Population
reg wtaxcomp region lnavgexp avgcompetitors lnavgage lntotlabor gov_owner_share c.lowfc##c.obsolete##c.tariff ln_tot_pop free_media i.sector urban_pop, vce(cluster country)
*outreg2 using ".../additional_controls.xls", dec(3) alpha(.01, .05, .1) append

* Gross Capital Formation
reg wtaxcomp region lnavgexp avgcompetitors lnavgage lntotlabor gov_owner_share c.lowfc##c.obsolete##c.tariff ln_tot_pop free_media i.sector gross_capital_for_gdp, vce(cluster country)
*outreg2 using ".../additional_controls.xls", dec(3) alpha(.01, .05, .1) append

* Industry Value Added
reg wtaxcomp region lnavgexp avgcompetitors lnavgage lntotlabor gov_owner_share c.lowfc##c.obsolete##c.tariff ln_tot_pop free_media i.sector industry_va_gdp, vce(cluster country)
*outreg2 using ".../additional_controls.xls", dec(3) alpha(.01, .05, .1) append

* Education
reg wtaxcomp region lnavgexp avgcompetitors lnavgage lntotlabor gov_owner_share c.lowfc##c.obsolete##c.tariff ln_tot_pop free_media i.sector enrol, vce(cluster country)
*outreg2 using ".../additional_controls.xls", dec(3) alpha(.01, .05, .1) append

* Military Spending
reg wtaxcomp region lnavgexp avgcompetitors lnavgage lntotlabor gov_owner_share c.lowfc##c.obsolete##c.tariff ln_tot_pop free_media i.sector military_spending_gdp, vce(cluster country)
*outreg2 using ".../additional_controls.xls", dec(3) alpha(.01, .05, .1) append

* State Antiquity 
reg wtaxcomp region lnavgexp avgcompetitors lnavgage lntotlabor gov_owner_share c.lowfc##c.obsolete##c.tariff ln_tot_pop free_media i.sector scaled_state_hist, vce(cluster country)
*outreg2 using ".../additional_controls.xls", dec(3) alpha(.01, .05, .1) append

* Ethnic Fragmentation
reg wtaxcomp region lnavgexp avgcompetitors lnavgage lntotlabor gov_owner_share c.lowfc##c.obsolete##c.tariff ln_tot_pop free_media i.sector ethnic, vce(cluster country)
*outreg2 using ".../additional_controls.xls", dec(3) alpha(.01, .05, .1) append


